﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Media.Audio;
using Windows.Media.Editing;

namespace CommonLibrary {
    public class Subtitle : INotifyPropertyChanged {
        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void OnPropertyChanged(string name) {
            this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
        }

        private TimeSpan _BeginTime = new TimeSpan();
        public TimeSpan BeginTime {
            get { return _BeginTime; }
            set {
                _BeginTime = value;
                OnPropertyChanged(nameof(this.BeginTime));
            }
        }

        private TimeSpan _EndTime = new TimeSpan();
        public TimeSpan EndTime {
            get { return _EndTime; }
            set {
                _EndTime = value;
                OnPropertyChanged(nameof(this.EndTime));
            }
        }

        private string _Text = "";
        public string Text {
            get { return _Text; }
            set {
                _Text = value;
                OnPropertyChanged(nameof(this.Text));
            }
        }
        public BackgroundAudioTrack AudioTrack;
    }
}
